{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "from PIL import Image\n",
    "import numpy as np"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(1330, 1330, 3)\n",
      "(1330, 1330, 3)\n"
     ]
    }
   ],
   "source": [
    "img=Image.open(\"./img/street.jpg\")\n",
    "img2=Image.open(\"./img/street.jpg\").convert('RGB')\n",
    "img=np.array(img)\n",
    "img2=np.array(img2)\n",
    "print(img.shape)\n",
    "print(img2.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(600, 805, 3)\n",
      "(600, 805, 3)\n"
     ]
    }
   ],
   "source": [
    "img3=Image.open(\"./img/mountain.jpeg\")\n",
    "img4=Image.open(\"./img/mountain.jpeg\").convert('RGB')\n",
    "img3=np.array(img3)\n",
    "img4=np.array(img4)\n",
    "print(img3.shape)\n",
    "print(img4.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(49, 80, 3)\n",
      "(49, 80, 3)\n"
     ]
    }
   ],
   "source": [
    "img3=Image.open(\"./img/000000.png\")\n",
    "img4=Image.open(\"./img/000000.png\").convert('RGB')\n",
    "img3=np.array(img3)\n",
    "img4=np.array(img4)\n",
    "print(img3.shape)\n",
    "print(img4.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[[ 95,  85,  75],\n",
       "        [103,  93,  83],\n",
       "        [105,  92,  83],\n",
       "        ...,\n",
       "        [104,  92,  80],\n",
       "        [107,  93,  82],\n",
       "        [110,  96,  85]],\n",
       "\n",
       "       [[112,  93,  76],\n",
       "        [109,  90,  73],\n",
       "        [111,  90,  73],\n",
       "        ...,\n",
       "        [112,  91,  72],\n",
       "        [113,  92,  73],\n",
       "        [114,  93,  74]],\n",
       "\n",
       "       [[119,  97,  76],\n",
       "        [114,  92,  71],\n",
       "        [116,  91,  71],\n",
       "        ...,\n",
       "        [114,  89,  67],\n",
       "        [114,  89,  67],\n",
       "        [117,  92,  70]],\n",
       "\n",
       "       ...,\n",
       "\n",
       "       [[119,  97,  76],\n",
       "        [120,  98,  77],\n",
       "        [119,  97,  76],\n",
       "        ...,\n",
       "        [113,  91,  70],\n",
       "        [107,  84,  66],\n",
       "        [103,  80,  62]],\n",
       "\n",
       "       [[118,  97,  78],\n",
       "        [118,  97,  78],\n",
       "        [118,  97,  78],\n",
       "        ...,\n",
       "        [111,  90,  71],\n",
       "        [106,  85,  68],\n",
       "        [102,  81,  64]],\n",
       "\n",
       "       [[113, 100,  84],\n",
       "        [112,  99,  83],\n",
       "        [112,  98,  85],\n",
       "        ...,\n",
       "        [105,  91,  78],\n",
       "        [101,  87,  76],\n",
       "        [ 97,  83,  72]]], dtype=uint8)"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "img3"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[[ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        ...,\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True]],\n",
       "\n",
       "       [[ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        ...,\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True]],\n",
       "\n",
       "       [[ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        ...,\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True]],\n",
       "\n",
       "       ...,\n",
       "\n",
       "       [[ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        ...,\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True]],\n",
       "\n",
       "       [[ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        ...,\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True]],\n",
       "\n",
       "       [[ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        ...,\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True],\n",
       "        [ True,  True,  True]]])"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "interpreter": {
   "hash": "e19c3b05d7e68d810484d7d1bf6fc2978c2473e23d0712071fe8898275e4d1c4"
  },
  "kernelspec": {
   "display_name": "Python 3.6.8 64-bit ('pytorch_yolov3': conda)",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.8"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}